package com.example.demo.dao;

import com.example.demo.bean.Department;
import com.example.demo.bean.Regional;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;

/**
 * Created by IntelliJ IDEA.
 *
 * @author ouyangzhixiang
 * @date 2018/6/23
 */
public interface RegionalRepository extends JpaRepository<Regional, Integer> {

    List<Regional> findByParentIdOrderById(Integer parentId);
}
